define(function(){
    return function(res,list){
        let str = "";
        res.data.forEach(val=>{
            // console.log(val);
            str += `
            <div class="hot-bottom-1" index=${val.goodsId} >
               <a href="../html/xiangqing.html?id=${val.goodsId}" style="    text-decoration: none;"> <img src="${val.proImg}" alt="">
                <h3 style="color: black;" >${val.proName}</h3>
                <h5>${val.introduce}</h5>
                <p>
                    <span>${val.price}</span>
                </p><a/>
                <a href="../html/shopping.html"><button class="btn1" >去购物车结算</button></a>
                <button class="btn2">加入购物车</button>
            </div>
            `
        });
        // console.log(str);
        list.innerHTML = str;
    }
})